package com.example.webfluxdemo.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.Transient;
import org.springframework.data.relational.core.mapping.Table;

import lombok.Data;

@EqualsAndHashCode(callSuper = true)
@Data
@Table("ad_space")
public class AdSpaceEntity extends BaseEntity {
	private String identityId;
	private String name;
	private Integer mediaId;
	private Integer tradeType;
	private Integer adFormatType;
	private String adTemplateIds;
	private BigDecimal estimateCtr;
	private String imageUrl;
	private String remark;
	private String secondDownload;
	private String oneClickToDownload;
	private String deepLink;
	private Integer saleType;
	private Integer billingType;
	private BigDecimal unitPrice;
	private Integer xField;
	private String sdkConfigJson;
	private String sdkCouponAdSpaceId;
	private String sdkConfigJsonTargeting;
	private Integer tolerateMaxTime;
	private Integer type;
	private Integer auditStatus;
	private String auditMsg;
	private LocalDateTime auditTime;
	private String adxAid;
	private BigDecimal adxFloorCpm;
	private BigDecimal adxFloorCpc;
	private Integer materialAudit; // 是否需要审核素材，1-是，2-否
	private Integer materialAuditMode; // 审核方式，1-先播后审，2-先审后播
	private Integer trafficSupply; // 流量补余，1-是，2-否
	private Integer operationMode; // 运营模式，1-托管，2-自营
	private String rewardCallbackUrl; // 奖励发放回调Url

	@Transient
	private List<AdSpacePlatformConfigEntity> cfgs;
}
